module.exports = {
    // 过滤掉对象中为空的属性
    pick(obj) {
        let newObj = {}
        for (const key in obj) {
            if (obj[key] !== undefined && obj[key] !== null && obj[key] !== '') {
                newObj[key] = obj[key]
            }
        }
        return newObj
    }
}